package com.novel.bean;
/**
 * @ClassName:	User.java
 * @Description:	用户类(对应数据库表user)
 * 
 * @author 		YF
 * @version		V1.0
 * @since
 * @Date		2019年12月29日上午9:41:01
 *
 */
public class User {
	private int id;//用户id
	private String username;//用户名
	private String nickname;//昵称
	private String password;//密码
	private String headpic;//头像
	private String truename;//真实姓名
	private String createtime;//注册时间
	private String sex;//性别
	private String phone;//手机
	private String email;//邮箱
	private String idnumber;//身份证号
	private String personalprofile;//个人简介
	
	public User() {
		super();
	}

	/**
	 * 
	 * @Title:        User
	 * @Description:    简要信息(这里用一句话描述这个方法的作用)
	 * 
	 */
	public User(int id, String username, String nickname, String password, String headpic, String createtime,
			String sex) {
		this.id = id;
		this.username = username;
		this.nickname = nickname;
		this.password = password;
		this.headpic = headpic;
		this.createtime = createtime;
		this.sex = sex;
	}

	/**
	 * 
	 * @Title:        User
	 * @Description:    全部信息(这里用一句话描述这个方法的作用)
	 */
	public User(int id, String username, String nickname, String password, String headpic, String truename,
			String createtime, String sex, String phone, String email, String idnumber, String personalprofile) {
		this.id = id;
		this.username = username;
		this.nickname = nickname;
		this.password = password;
		this.headpic = headpic;
		this.truename = truename;
		this.createtime = createtime;
		this.sex = sex;
		this.phone = phone;
		this.email = email;
		this.idnumber = idnumber;
		this.personalprofile = personalprofile;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getHeadpic() {
		return headpic;
	}

	public void setHeadpic(String headpic) {
		this.headpic = headpic;
	}

	public String getTruename() {
		return truename;
	}

	public void setTruename(String truename) {
		this.truename = truename;
	}

	public String getCreatetime() {
		return createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getIdnumber() {
		return idnumber;
	}

	public void setIdnumber(String idnumber) {
		this.idnumber = idnumber;
	}

	public String getPersonalprofile() {
		return personalprofile;
	}

	public void setPersonalprofile(String personalprofile) {
		this.personalprofile = personalprofile;
	}

	@Override
	public String toString() {
		return "[id=" + id + ", username=" + username + ", nickname=" + nickname + ", password=" + password
				+ ", headpic=" + headpic + ", truename=" + truename + ", createtime=" + createtime + ", sex=" + sex
				+ ", phone=" + phone + ", email=" + email + ", idnumber=" + idnumber + ", personalprofile="
				+ personalprofile + "]";
	}
	
	
}
